package classes.Commands
{
	import components.editor.c_baseElement;
	import components.editor.c_editedElement;
	
	import flash.geom.Matrix;
	
	public class c_applyHistoryData extends c_baseCommand {
		private var _setData	: Object;
		private var _prevData	: Object;
		public function c_applyHistoryData(a_element: c_baseElement, a_setData: Object, a_prevData: Object) {
			super(a_element);
			_setData 	= a_setData;
			_prevData 	= a_prevData;
		}
		
		override public function noExecute():void {
			element.setHistoryData(_prevData);
		}
		
		override public function Execute():void {
			element.setHistoryData(_setData);
		}
		
		override public function unExecute():void {
			element.setHistoryData(_prevData);
		}
	}
}